// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package fr.upstlse.glre.business.domain;
/**
 * @see fr.upstlse.glre.business.domain.Adresse
 */
public class AdresseDaoImpl
    extends fr.upstlse.glre.business.domain.AdresseDaoBase
{
    /**
     * @see fr.upstlse.glre.business.domain.AdresseDao#toAdresseVO(fr.upstlse.glre.business.domain.Adresse, fr.upstlse.glre.business.vo.AdresseVO)
     */
    public void toAdresseVO(
        fr.upstlse.glre.business.domain.Adresse source,
        fr.upstlse.glre.business.vo.AdresseVO target)
    {
        // @todo verify behavior of toAdresseVO
        super.toAdresseVO(source, target);
    }


    /**
     * @see fr.upstlse.glre.business.domain.AdresseDao#toAdresseVO(fr.upstlse.glre.business.domain.Adresse)
     */
    public fr.upstlse.glre.business.vo.AdresseVO toAdresseVO(final fr.upstlse.glre.business.domain.Adresse entity)
    {
        // @todo verify behavior of toAdresseVO
        return super.toAdresseVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private fr.upstlse.glre.business.domain.Adresse loadAdresseFromAdresseVO(fr.upstlse.glre.business.vo.AdresseVO adresseVO)
    {
        // @todo implement loadAdresseFromAdresseVO
        throw new java.lang.UnsupportedOperationException("fr.upstlse.glre.business.domain.loadAdresseFromAdresseVO(fr.upstlse.glre.business.vo.AdresseVO) not yet implemented.");

        /* A typical implementation looks like this:
        fr.upstlse.glre.business.domain.Adresse adresse = this.load(adresseVO.getId());
        if (adresse == null)
        {
            adresse = fr.upstlse.glre.business.domain.Adresse.Factory.newInstance();
        }
        return adresse;
        */
    }

    
    /**
     * @see fr.upstlse.glre.business.domain.AdresseDao#adresseVOToEntity(fr.upstlse.glre.business.vo.AdresseVO)
     */
    public fr.upstlse.glre.business.domain.Adresse adresseVOToEntity(fr.upstlse.glre.business.vo.AdresseVO adresseVO)
    {
        // @todo verify behavior of adresseVOToEntity
        fr.upstlse.glre.business.domain.Adresse entity = this.loadAdresseFromAdresseVO(adresseVO);
        this.adresseVOToEntity(adresseVO, entity, true);
        return entity;
    }


    /**
     * @see fr.upstlse.glre.business.domain.AdresseDao#adresseVOToEntity(fr.upstlse.glre.business.vo.AdresseVO, fr.upstlse.glre.business.domain.Adresse)
     */
    public void adresseVOToEntity(
        fr.upstlse.glre.business.vo.AdresseVO source,
        fr.upstlse.glre.business.domain.Adresse target,
        boolean copyIfNull)
    {
        // @todo verify behavior of adresseVOToEntity
        super.adresseVOToEntity(source, target, copyIfNull);
    }

}